package cn.esale.action;

import java.util.List;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

import cn.esale.entity.CusCustomer;
import cn.esale.service.CusCustomerBiz;

public class CusCustomerAction extends ActionSupport {
	
	private List<CusCustomer> customerList;
	private CusCustomerBiz cusCustomerBiz;
	public List<CusCustomer> getCustomerList() {
		return customerList;
	}
	public void setCustomerList(List<CusCustomer> customerList) {
		this.customerList = customerList;
	}
	public CusCustomerBiz getCusCustomerBiz() {
		return cusCustomerBiz;
	}
	public void setCusCustomerBiz(CusCustomerBiz cusCustomerBiz) {
		this.cusCustomerBiz = cusCustomerBiz;
	}
	
	public String list(){
		customerList=this.cusCustomerBiz.findAll();
		return Action.SUCCESS;
	}
}
